export default {
	methods: {
		/**
			* 获取深层级参数
			* @param {*} key
			* form.aaa.bbb.0.cc 
			*/
		objectValue(obj = {}, key = "") {
			var field = key.split('.');
			var str = 'obj';
			field.map(i => {
				if (/^\d+$/.test(i)) {
					str += `[${i}]`
				} else {
					str += `["${i}"]`
				}
			});
			try {
				console.log(1,obj);
				return eval(str);
			} catch (e) {
				console.log('e: ', e);
				return '';
			}
		}
	},
}